const express = require("express")
const router = require("./router/index")
const bodyParser = require("body-parser")
const cors = require("cors")

const app = express()
app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());
app.use(cors())
app.use(router)
app.listen(8000, () => {
    console.log("启动服务器：http://localhost:8000")
})